<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : detail.xsl
    Created on : October 1, 2013, 9:46 PM
    Author     : mrnghiep
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:in="http://xml.netbeans.org/schema/informations" exclude-result-prefixes="in">
    <xsl:output method="html" indent="yes"/>
    <xsl:param name="id" select="''"/>


    <xsl:template match="in:informations">
        <xsl:variable name="detail" select="in:information[in:id=$id]"/>
        <div class="posts">
            <div class="news-title-top">
                <h2>
                    <xsl:value-of select="$detail/in:category"/>
                    <xsl:value-of select="$detail/in:id"/> -
                    <xsl:value-of select="$detail/in:owner"/> -
                    <xsl:value-of select="$detail/in:info"/>
                </h2>
            </div>
            <div class="clean"></div>

            <div class="image-detail">
                <img alt="" src="images/logo_tgt.jpg"></img>
            </div>

            <div class="news-info">
                <div class="name">
                    <div class="label">Mã tin</div>
                    <div class="noidungmota"><xsl:value-of select="$detail/in:category"/><xsl:value-of select="$detail/in:id"/></div>
                    <div class="clean"></div>
                </div>

                <div class="name">
                    <div class="label">Loại giấy tờ</div>
                    <div class="noidungmota"><xsl:value-of select="$detail/in:type"/></div>
                    <div class="clean"></div>
                </div>
                <div class="name">
                    <div class="label">Ngày đăng</div>
                    <div class="noidungmota"><xsl:value-of select="$detail/in:date"/></div>
                    <div class="clean"></div>
                </div>
                <div class="name">
                    <div class="label">Tên chính chủ</div>
                    <div class="noidungmota"><xsl:value-of select="$detail/in:owner"/></div>
                    <div class="clean"></div>
                </div>
                <div class="name">
                    <div class="label">Số CMND/ Hộ Chiếu/ BKS/ Ngày sinh</div>
                    <div class="noidungmota"><xsl:value-of select="$detail/in:info"/></div>
                    <div class="clean"></div>
                </div>
                <div class="name">
                    <div class="label">Nơi mất giấy tờ</div>
                    <div class="noidungmota"><xsl:value-of select="$detail/in:location"/></div>
                    <div class="clean"></div>
                </div>
            </div>
            <div class="clean"></div>
            <div class="contact-info">
                <div class="label2">Mô tả</div>
                <div class="label1">
                    <p><xsl:value-of select="$detail/in:description"/></p>
                </div>
            </div>
            <div class="clean"></div>

            <div class="contact-info">
                <div class="label2">Thông tin người liên lạc</div>
                <div class="label1">
                    <span>Họ tên</span>: <xsl:value-of select="$detail/in:fullName"/>
                </div>
                <div class="label1">
                    <span>Email</span>:
                    <a href="mailto:$detail/email" target="_top"><xsl:value-of select="$detail/in:email"/></a>
                </div>
                <div class="label1">
                    <span>Địa chỉ</span>: <xsl:value-of select="$detail/in:address"/>
                </div>
                <div class="label1">
                    <span>Mobile</span>: <xsl:value-of select="$detail/in:phone"/>
                </div>
            </div>
        </div>
    </xsl:template>

</xsl:stylesheet>
